<!DOCTYPE html>
<html>
  <head>
  <script>
    window.onload = function() {
      top.calledFromIframe();
    }
  </script>
  </head>
  <body>
    <div id="inner">foo</div>
  </body>
</html>
